/*
 * Copyright Hundsun Technologies Inc. All Rights Reserved.
 */

package tx

import (
	"github.com/spf13/cobra"
)

const (
	txName          = "tx"
	txDes           = "Transaction"
	flagTxPerSecond = "txPerSecond"
)

//Cmd ...
func Cmd() *cobra.Command {
	txCmd := &cobra.Command{
		Use:   txName,
		Short: txDes,
		Long:  txDes,
		Args:  cobra.MinimumNArgs(1),
	}

	txCmd.AddCommand(transferContinueCmd())
	txCmd.AddCommand(transferCmd())
	txCmd.AddCommand(queryTxByHashCmd())

	return txCmd
}
